package com.ruoyi.merchant.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = ServiceNameConstants.MERCHANT_SERVICE)
public interface OrderService {

    @PutMapping("/order/orderTimeout/{id}")
    public int ordertimeout(@PathVariable("id") Long id,@RequestHeader(SecurityConstants.FROM_SOURCE) String from);
}
